<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>1.2 用webpack4 / parcel快速搭建开发san helloworld</title>
</head>

<body>
  <script src="https://unpkg.com/san@latest/dist/san.dev.js"></script>
  <script>
    var MyApp = san.defineComponent({
      template: '<p>Hello {{msg}}!</p>',
      initData: function () {
        return {
          msg: 'world'
        };
      }
    });
    var myApp = new MyApp();
    myApp.attach(document.body);
  </script>
</body>

</html>